<script setup>
import { useCounterStore } from '@/store/counter.js';
const counterStore = useCounterStore();
</script>

<template>
    <div>
        Son2组件 - {{ counterStore.count }}
        <button @click="counterStore.subCount">-</button>
    </div>
</template>